//
//  FindDeatilModel.m
//  TasteEnjoy
//
//  Created by XuRui on 16/5/1.
//  Copyright © 2016年 XuRui. All rights reserved.
//

#import "FindDeatilModel.h"

@implementation FindDeatilModel

- (void)dealloc
{
    [_path release];
    [_height release];
    [_width release];
    [_msg release];
    [_like_count release];
    [_favorite_count release];
    [_reply_count release];
    [_name release];
    [_username release];
    [_avatar release];
    [_price release];
    [_iid release];
    [super dealloc];
    
}

#warning 5.KVC setValue

#pragma mark - ------------ KVC赋值 ---------------


- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
    if ([key isEqualToString:@"photo"]) {
        
        self.path = value[@"path"];
        self.width = value[@"width"];
        self.height = value[@"height"];
        
        
    }if ([key isEqualToString:@"actor"]) {
        self.username = value[@"username"];
        
        self.avatar = value[@"avatar"];
        
    }
    
    else if ([key isEqualToString:@"sender"]) {
        
        self.username = value[@"username"];
        self.avatar = value[@"avatar"];
        
    }else if ([key isEqualToString:@"album"]) {
        
        self.name = value[@"name"];
        
    }else if ([key isEqualToString:@"item"]){
        
        self.price = value[@"price"];
        
    }else if ([key isEqualToString:@"id"]){
        
        self.iid = value;
        
    }
    
    
    
}


@end
